package spring.advancedweb;

import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
import spring.advancedweb.config.RootConfig;
import spring.advancedweb.config.WebConfig;

import javax.servlet.Filter;

/**
 * Created by kassadin@foxmail.com on 2017/4/28 0028.
 */
public class App extends AbstractAnnotationConfigDispatcherServletInitializer {
    protected Class<?>[] getRootConfigClasses() {
        return new Class[]{RootConfig.class};
    }

    protected Class<?>[] getServletConfigClasses() {
        return new Class[]{WebConfig.class};
    }

    protected String[] getServletMappings() {
        return new String[]{"/"};
    }

    /**
     * 注册  filter
     * @return
     */
    @Override
    protected Filter[] getServletFilters() {
        return super.getServletFilters();
    }

}
